﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using SPPD.model;

namespace SPPD
{
	/// <summary>
	/// Interaction logic for bendahara_spj.xaml
	/// </summary>
	public partial class bendahara_spj : Window
	{
        sppd espepede = new sppd();
        public pegawai pegawaiLogin = new pegawai();
		public bendahara_spj(pegawai pgawai)
		{
			this.InitializeComponent();
            pegawaiLogin = pgawai;
			// Insert code required on object creation below this point.
		}

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Window1 bendahara = new Window1(pegawaiLogin);
            this.Hide(); bendahara.Show();
        }

        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            Window4 tolak = new Window4(2, espepede, pegawaiLogin);
            this.Hide(); tolak.Show();
        }

        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            espepede.status = 1;
        }
	}
}